package asteroids.model.programs.Expression;

/**
* 
* @version 0.3
* @author  Tandan Sunil, Van Deun Luca
*
*/
public class SquareRoot extends UnaryCalculationExpression {

	public SquareRoot(int line, int column, Expression e) throws IllegalArgumentException{
		super(line, column, e);
	}

	/**
	 * Returns the value of this square root.
	 * @return ...
	 * 			| result ==  Math.sqrt(getExpression().getValue())
	 */
	@Override
	public double getValue() {
		return Math.sqrt(getExpression().getValue());
	}

}
